<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ShopMaster extends Model
{
    //自定义表名
    protected $table = 'shops_master';
    //不用自带的时间
     public $timestamps = false;
    //自定义可填充字段
    protected $fillable = [
        'shopid','openid','privilege','nickname','headpic','referral','regtime','lasttime','subscribe','asstatus'
    ];
    //自定义时间格式
    public function getRegtimeAttribute($value)
    {
        return date('Y-m-d',$value);
    }
    public function getLasttimeAttribute($value)
    {
        return date('Y-m-d',$value);
    }
}
